from django.shortcuts import render
from django.http import HttpResponse
import datetime


# Create your views here.
def lanague(request):
    lis1 = ["zyd", "xiaoming ", "dijiayu"]
    user_dict = {}
    dic1 = {"name": "jackeylove", "age": 18}
    user_dict["lis1"] = ["zyd", "xiaoming", "djy"]
    user_dict["username"] = "张业頔"
    user_dict["password"] = "123456"
    hero_dict = [
        {"age": 20, "name": "Jackeylove"},
        {"age": 25, "name": "宋义进"},
        {"age": 22, "name": "姜呈露"}
    ]
    return render(request, "language.html",
                  context={"user_dict": user_dict, "dic1": dic1,
                           "username": user_dict["username"],
                           "password": user_dict["password"],
                           "lis1": lis1,
                           "status": 0,
                           "log": 3,
                           "time": datetime.datetime.now(),
                           "hero_dict": hero_dict,
                           "id": 3,
                           "name": "ROOKIE",
                           "tag": "<h1>笑死我了</h1>"}
                  )
